home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
Source
/
Foundation
/
OS
/
ZBaseTimer.cpp
next >
Wrap
Text File
|
1996-10-28
|
2KB
|
82 lines
/*
* File: ZBaseTimer.h
* Summary: Abstract base class for a mixin that gets periodic time.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 6/23/96 JDJ Created
*/
#include <ZBaseTimer.h>
#include <ZDebug.h>
// ===================================================================================
// class MBaseTimer
// ===================================================================================
//---------------------------------------------------------------
//
// MBaseTimer::~MBaseTimer
//
//---------------------------------------------------------------
MBaseTimer::~MBaseTimer()
{
}
//---------------------------------------------------------------
//
// MBaseTimer::MBaseTimer
//
//---------------------------------------------------------------
MBaseTimer::MBaseTimer(MilliSecond freq, bool running)
{
ASSERT(freq >= 0);
mTimerFreq = freq;
mTimerIsRunning = running;
}
//---------------------------------------------------------------
//
// MBaseTimer::StopTimer
//
//---------------------------------------------------------------
void MBaseTimer::StopTimer()
{
mTimerIsRunning = false;
}
//---------------------------------------------------------------
//
// MBaseTimer::StartTimer
//
//---------------------------------------------------------------
void MBaseTimer::StartTimer()
{
mTimerIsRunning = true;
}
//---------------------------------------------------------------
//
// MBaseTimer::SetTimerFreq
//
//---------------------------------------------------------------
void MBaseTimer::SetTimerFreq(MilliSecond freq)
{
ASSERT(freq >= 0);
mTimerFreq = freq;
}